package com.thread;

public class Synchronized {
	private int x = 1;

	private synchronized void m() {
		x++;
	}

	private void testSyn() {
		synchronized (this) {
			x++;
		}
	}
}